#!/usr/bin/python
# -*- encoding: utf-8 -*-

#   MusicLog Daemon
#
#   Copyright (c) 2008 Rafael G. Martins <rafael@rafaelmartins.com>
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.

from sys import argv

VERSION = "0.1"

def usage():
  print "MusicLog Daemon"
  print "Copyright (c) 2008 Rafael G. Martins <rafael@rafaelmartins.com>"
  print ""
  print "Usage: %s [--help|--kill|--version] <mpd_host> <mpd_port> <web_page> [<password>]" % argv[0]
  print ""
  print "Musiclog is daemon to send informations from musics that"
  print "you listened with MPD for a web page, via POST method"

def version():
  print "MusicLog Daemon %s" % VERSION
  print "Copyright (C) 2008 Rafael G. Martins <rafael@rafaelmartins.com>"
  print ""
  print "This is free software; see the source for copying conditions."
  print "There is NO WARRANTY, to the extent permitted by law."

def help():
  print "MusicLog Daemon"
  print "Copyright (c) 2008 Rafael G. Martins <rafael@rafaelmartins.com>"
  print ""
  print "%s [--help|--kill|--version] <mpd_host> <mpd_port> <web_page> [<password>]" % argv[0]
  print ""
  print "Options:"
  print ""
  print "\t--help\t\tShow this help"
  print "\t--kill\t\tStop the daemon"
  print "\t--version\tShow version information."
  print ""
  print "Parameters:"
  print ""
  print "\tmpd_host\tThe \"Music Player Daemon\" host"
  print "\tmpd_port\tThe \"Music Player Daemon\" port"
  print "\tweb_page\tThe web page that will receive logs via POST method"
  print "\tpassword\tThe web page password, to autenticate the logs"
  print ""
